import Request from "@/util/request";

export const Login = (data) => Request({ url: '/api/User/Login', method: 'post', data });
export const GetUserInfo = (data) => Request({ url: '/api/User/GetCurrentUser', method: 'get', params: data });
export const DeleteUser = (data) => Request({ url: '/api/User/Delete', method: 'get', params: data });//Delete(int userId)
export const GetUserList = (data) => Request({ url: '/api/User/QueryData', method: 'post', data });
export const AddOrUpdateUser = (data) => Request({ url: '/api/User/AddOrUpdate', method: 'post', data });
export const UpdatePassword = (data) => Request({ url: '/api/User/UpdatePassword', method: 'post', data });
export const UserExport = (data) => Request({ url: '/api/User/UserExport', method: 'post', data });


export const Test = () => Request({ url: '/api/Menu/GetAllControllerName', method: 'get' });

